﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace AconITF.Extension
{
	public class ChartColor
	{
		public static string[] ChartColors =
			{
			"#D60000",
			"#00AE00",
			"#2B2BC1",
			"#B8B831",
			"#B317B3",
			"#45D1D1",
			"#682BDE",
			"#5099B3",
			"#7FDE2B",
			"#CB751A",
		};

		static Random random = new Random();

		public static Color GetColor(int index)
		{
			//var color = new Color();
			//color.A = 255;
			//color.R = (byte)random.Next(50, 200);
			//color.G = (byte)random.Next(50, 190);
			//color.B = (byte)random.Next(50, 190);
			//return color;
			return (Color)ColorConverter.ConvertFromString(ChartColors[index % ChartColors.Length]);
		}
	}
}
